﻿// ********************************************
// ClassName  ：  Patients.cs
// Author        ：
// Company     ： 智测心控
// Version        ：V1.0
// CreateTime ： {date}
// Description ：
// ********************************************

using DcpServer.Domain.BaseModels;
using DcpServer.Model.Enum;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DcpServer.Domain
{
    /// <summary>
    /// 病人信息
    /// </summary>
    [Table("VSIS_Patient", Schema = "dbo")]
    public class Patient : BaseModel
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [MaxLength(15)]
        [Description("姓名")]
        [Required]
        public string PatientName { get; set; }

        /// <summary>
        /// 病人类型
        /// </summary>
        public EnumPatientTyp PatientType { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Description("性别")]
        [Required]
        public EnumSex Sex { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [Description("年龄")]
        [Required]
        public int Age { get; set; }

        /// <summary>
        /// 床号
        /// </summary>
        [Description("床号")]
        [MaxLength(15)]
        [Required]
        public string HospitalBedNo { get; set; }

        /// <summary>
        /// 住院号
        /// </summary>
        [MaxLength(15)]
        [Description("住院号")]
        [Required]
        public string AdmissionNumber { get; set; }

        /// <summary>
        /// 入院时间
        /// </summary>
        [Description("入院时间")]
        [Required]
        public DateTime AdmissionTime { get; set; }

        /// <summary>
        /// 科室
        /// </summary>
        [MaxLength(15)]
        [Description("科室")]
        [Required]
        public string HospitalDepartments { get; set; }

        /// <summary>
        /// 主治医生
        /// </summary>
        [MaxLength(15)]
        [Description("主治医生")]
        [Required]
        public string AttendingPhysician { get; set; }

        /// <summary>
        /// 责任护士
        /// </summary>
        [MaxLength(15)]
        [Description("责任护士")]
        [Required]
        public string ResponsibleNurse { get; set; }

        /// <summary>
        /// 护理等级
        /// </summary>
        [Description("护理等级")]
        [Required]
        public EnumNursingGrade NursingGrade { get; set; }

        /// <summary>
        /// 过敏信息
        /// </summary>
        [MaxLength(100)]
        [Description("过敏信息")]
        public string AllergicInformation { get; set; }

        /// <summary>
        /// 饮食注意事项
        /// </summary>
        [Description("饮食注意事项")]
        [Required]
        public EnumDietaryPrecautions DietaryPrecautions { get; set; }

        /// <summary>
        /// 医嘱
        /// </summary>
        [Description("医嘱")]
        [Required]
        public EnumDoctorsAdvice DoctorsAdvice { get; set; }

        /// <summary>
        /// 手术信息
        /// </summary>
        [MaxLength(100)]
        [Description("手术信息")]
        public string SurgicalInformation { get; set; }
    }
}